You can use one of these constants to set or obtain the alignment of text relative to the margins in a line of text or in an entire text layout object; see the functions ATSUSetLayoutControls, ATSUSetLineControls, ATSUGetLayoutControl, and ATSUGetLineControl, respectively.
enum {
kATSUStartAlignment = 0,
kATSUEndAlignment = fract1,
kATSUCenterAlignment = fract1 / 2
};
Constant descriptions
kATSUStartAlignment
Specifies that horizontal text should be drawn to the right of the left margin (that is, its left edge coincides with the text layout object's position plus text width). Vertical text should be drawn below the top margin.
kATSUEndAlignment
Specifies that horizontal text should be drawn to the left of the right margin. Vertical text should be drawn above the bottom margin.
kATSUCenterAlignment
Specifies that horizontal text should be drawn between the left and right margins with an equal amount of space on either side. Vertical text should be drawn between the top and bottom margins with an equal amount of space on either side.